<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@page import="com.card.match.*" %>
<%@include file="m_head.jsp" %>
<body>
<%
List<MatchSetting> adviceList = MatchManager.getInstance().getSettingList();
%>
<div data-role="page" id="demo-page">
    <div data-role="header">
        <h1>比赛列表</h1>
        <a href="#myPanel" data-icon="bars"  data-shadow="false" data-iconshadow="false">菜单</a>
    </div>
    <div role="main" class="ui-content">
		<ul data-role="listview">
				<%
					for (int i = 0; i < adviceList.size(); i++) {
						MatchSetting advice = adviceList.get(i);
				%>
				<li><a href="m_matchdes.jsp?id=<%=advice.getId()%>">
						<h4>
							比赛名称：<%=advice.getName()%>
						</h4>
						<p>游戏名称：<%=advice.getGameName()%></p>
						<p>比赛人数：<%=advice.getNum()%></p>
						<p>参赛费：<%=advice.getEnterDiamond()%></p>
						<p>状态：<%=advice.getState()%></p>
				</a></li>
				<%
					}
				%>
			</ul>
    </div>
    <%@include file="m_order.jsp"%>
</div>

</body>
</html>
